//分钟转成秒数
export const convert = (time) =>{
  let min = time.split(':')[0]*60
  let sec = parseInt(time.split(':')[1])
  return parseInt(min+sec)
}


//秒转换成分钟
export const reverseConvert=(time)=>{
  let min = parseInt(time / 60)
  let sec =parseInt( time % 60)
  if(min<10){
    min =" 0 "+ min
  }
  if(sec<10){
    sec = "0" + sec
  }
  return min + ':' + sec
}

// 毫秒值转化为年月日
export const dataConvert=(time)=>{
  return new Date(time).toLocaleString()
}